import React, { Component } from 'react'

export default class List extends Component {
  static defaultProps = {
    arr: ['大傻子', '要写arr哦', 'arr是数组哦'],
  }
  render() {
    return (
      <ul>
        {this.props.arr.map((item) => {
          return <li key={item}>{item}</li>
        })}
      </ul>
    )
  }
}
